<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>${title }</title>
<script type="text/javascript" src="${basePath}/static/js/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}/static/js/md5.js"></script>
<link href="${basePath}/static/css/basic.css" rel="stylesheet"
	type="text/css">
<link href="${basePath}/static/css/FilePicture_Manage.css"
	rel="stylesheet" type="text/css">
<script type="text/javascript" src="${basePath}/static/layer/layer.js"></script>
<link href="${basePath}/static/layer/layer_defined.css" rel="stylesheet"
	type="text/css">

</head>
<body>
	<div class="file_manage">
		<div class="file_title">
			<h3>病案查询&gt;图片管理</h3>
			<ul style="width: 90px;">
				<li><a href="javascript:;" id="closeBtn2"
					onclick="custom_close()">关闭</a></li>
			</ul>
		</div>
		<div class="file_content">
			<div class="file_header">
				<div class="left">文件信息</div>
				<div class="right">
					文件总数：<span id="totalPage">${result.data.count}</span><span>个</span>
				</div>
			</div>
			<div class="filePage" id="filepage">
				<ul>
					<c:forEach items="${resultMap.cachePicList}" var="cachePic"
						varStatus="cachePicIndex">
						<li data-filename="${cachePicIndex.count}"><img
							src="${cachePic}" /></li>
					</c:forEach>
				</ul>
			</div>
		</div>
		<div class="file_table">
			<p class="line">
				姓 名: <span>${resultMap.hospitalizationNotes[0].name}</span>
			</p>
			<p class="line">
				身份证号: <span>${resultMap.hospitalizationNotes[0].id_number}</span>
			</p>
			<p class="line">
				识别码: <span>${resultMap.hospitalizationNotes[0].mr_id}</span>
			</p>
			<p class="line">
				出院日期: <span>${resultMap.hospitalizationNotes[0].out_hospital_date}</span>
			</p>
		</div>
	</div>
	<script>
		//MD5加密
		function md5(secret) {
			return $.md5(secret);
		}

		//关闭页面
		function custom_close() {
			layer.confirm('您确定要关闭本页吗？', {
				btn : [ '确定', '取消' ]
			//按钮
			}, function() {
				window.close();
			}, function() {
				layer.close()
			});
		}
	</script>
</body>
</html>